extends TileMapLayer
class_name HighltightOnlyOneCellLayer

var highlight_cell:Vector2i

func change_highlight_cell(cell:Vector2i):
	erase_highlight_cell()
	if highlight_cell == cell:
		return
	highlight_cell = cell
	_highlight_cells()
func erase_highlight_cell():
	erase_cell(highlight_cell)

func _highlight_cells():
	_highlight_cell(highlight_cell)
func _highlight_cell(cell:Vector2i):
	set_cell(cell,0,Vector2i(1, 0))
